package string;

public class Demo11 {
    public static void main(String[] args) {
        String str = "Thinking in Java 是本好书!";
        String s1 = str.substring(9,11);
        String s2 = str.substring(9,9+2);
        String s3 = str.substring(4,4+4);
        String s4 = str.substring(4,8);
        String s5 = str.substring(12);

        System.out.println(s1);
        System.out.println(s2);
        System.out.println(s3);
        System.out.println(s4);
        System.out.println(s5);
    }
}

